package common.route;
import com.jfinal.config.Routes;

import common.inter.AdminAuthInter;
import common.inter.AdminLoginInter;
import controller.IndexController;
import controller.admin.AdminCalibrationController;
import controller.admin.AdminCompanyController;
import controller.admin.AdminCompareCheckController;
import controller.admin.AdminComsumablesRepalceController;
import controller.admin.AdminController;
import controller.admin.AdminDaliyItemsController;
import controller.admin.AdminDaliyRecordController;
import controller.admin.AdminGasReplaceController;
import controller.admin.AdminLiquidRecycleController;
import controller.admin.AdminMaintainRecordsController;
import controller.admin.AdminMenuController;
import controller.admin.AdminModifyRecordController;
import controller.admin.AdminMonitoringFacilitiesController;
import controller.admin.AdminOperateLogController;
import controller.admin.AdminParamConfigController;
import controller.admin.AdminQuipmentController;
import controller.admin.AdminReagentRenewalController;
import controller.admin.AdminRepaireController;
import controller.admin.AdminRoleController;
import controller.admin.AdminSampleRecordController;
import controller.admin.AdminServicerController;
import controller.admin.AdminStaffController;
import controller.admin.AdminStationController;
import controller.admin.AdminSysetemParamsController;
import controller.admin.AdminUnbindController;
import controller.admin.AdminUserController;
import controller.admin.AdminWaterCollectorController;

public class AdminRoutes extends Routes {

    @Override
    public void config() {
        setBaseViewPath("/");
        addInterceptor(new AdminLoginInter());
        addInterceptor(new AdminAuthInter());
        
        add("/", IndexController.class, "/");
        add("/admin", AdminController.class);
        add("/admin/paramConfig", AdminParamConfigController.class );
        add("/admin/user", AdminUserController.class );
        add("/admin/menu", AdminMenuController.class );
        add("/admin/role", AdminRoleController.class );
    
		add("/admin/operateLog" , AdminOperateLogController.class);
    
		add("/admin/company" , AdminCompanyController.class);
    
		add("/admin/servicer" , AdminServicerController.class);
    
		add("/admin/station" , AdminStationController.class);
    
		add("/admin/staff" , AdminStaffController.class);
    
		add("/admin/compareCheck" , AdminCompareCheckController.class);
    
		add("/admin/calibration" , AdminCalibrationController.class);
    
		add("/admin/gasReplace" , AdminGasReplaceController.class);
    
		add("/admin/comsumablesRepalce" , AdminComsumablesRepalceController.class);
    
		add("/admin/repaire" , AdminRepaireController.class);
    
		add("/admin/daliyItems" , AdminDaliyItemsController.class);
    
		add("/admin/daliyRecord" , AdminDaliyRecordController.class);
    
		add("/admin/sampleRecord" , AdminSampleRecordController.class);
    
		add("/admin/liquidRecycle" , AdminLiquidRecycleController.class);
    
		add("/admin/reagentRenewal" , AdminReagentRenewalController.class);
    
		add("/admin/modifyRecord" , AdminModifyRecordController.class);
    
		add("/admin/maintainRecords" , AdminMaintainRecordsController.class);
    
		add("/admin/quipment" , AdminQuipmentController.class);
    
		add("/admin/waterCollector" , AdminWaterCollectorController.class);
    
		add("/admin/monitoringFacilities" , AdminMonitoringFacilitiesController.class);
    
		add("/admin/sysetemParams" , AdminSysetemParamsController.class);
    
		add("/admin/unbind" , AdminUnbindController.class);
    }
}